import request from '@/utils/request'
import { GEN_SERVER } from '@/config/baseUrl'

//查询上报下发异常列表
export function distributeList(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/distribute/list',
    method: 'post',
    data: data
  })
}


// 批量删除上报下发异常
export function abnormalDel(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/distribute/deleteByIds',
    method: 'post',
    data: data
  })
}

//上报异常审核
export function abnormalCheck(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/distribute/check',
    method: 'post',
    data: data
  })
}

// 上报异常忽略
export function distributeIgnore(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/distribute/ignore',
    method: 'post',
    data: data
  })
}

// 新增或保存上报下发异常
export function abnormalAddOrUpdate(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/distribute/addOrUpdate',
    method: 'post',
    data: data
  })
}


